import STable from './index'

// eslint-disable-next-line func-names
const install = function (Vue) {
  if (Vue.prototype.$STable) {
    return
  }
  Vue.component('s-table', STable)
}

if (typeof window !== 'undefined' && window.Vue) {
  install(window.Vue)
}

// export default components
export default {
  install,
  's-table': STable
}
